const app = getApp();
// const URL = 'https://www.oybtrip.com';
const URL = app.globalData.URL;

export const allCommodity = {
  data: [
    {
      id: 0,
      cover:
        URL+"/admin-api/infra/file/4/get/b3a10951f9307d6b22e4f3880e2ff2fcd267d4fe68456077ded7a7d76f5e01ae.png",
      title: "车电一体499/期",
      canSelfPickUp: true,
      price: 499,
      mqzj:499,
      sales: 1589,
      name:"车电一体499/期",
      guige:"车电一体499/期",
      ms:"自提地址",
      imageUrl:
      URL+"/admin-api/infra/file/4/get/b3a10951f9307d6b22e4f3880e2ff2fcd267d4fe68456077ded7a7d76f5e01ae.png",
    },
    {
      id: 1,
      cover:
        URL+"/admin-api/infra/file/4/get/6d12dbf7a30020243c268751b7e1b7560d0d11928e6400f21a396d3900616d88.png",
      title: "单电车299/期",
      canSelfPickUp: true,
      price: 299,
      mqzj:499,
      sales: 1589,
      name:"车电一体499/期",
      guige:"车电一体499/期",
      ms:"自提地址",
      imageUrl:
      URL+"/admin-api/infra/file/4/get/b3a10951f9307d6b22e4f3880e2ff2fcd267d4fe68456077ded7a7d76f5e01ae.png",
    },
  ],
};

export const commodityDetail = {
  data: {
    cover:
      URL+"/admin-api/infra/file/4/get/b3a10951f9307d6b22e4f3880e2ff2fcd267d4fe68456077ded7a7d76f5e01ae.png",
    commodityName: "",
    price: 499,
    storage: 774,
    type: "黑色",
    shippingMethod: [
      {
        id: 2,
        name: "门店自提",
      },
    ],
    shippingFrom: {
      type: "门店自提",
      name: "橙黄蓝车行",
    },
    shippingTime: {
      payTime: "11:00",
      receiveDay: "今天",
      receiveFormatDay: "04月16日",
    },
    options: [
      {
        id: 2,
        name: "颜色",
        values: [
          {
            id: 1,
            name: "黑色",
          },
        ],
      },
    ],
    maxPurchaseNumber: 1,
  },
};
